pyverbs: Update MW rkey after type 2 bind - #1777
Open
zzwzds wants to merge 1 commit into
Open
Conversation
zzwzds
force-pushed
the
pyverbs-update-type2-mw-rkey
branch
from
July 21, 2026 06:23
7be8741 to
46186e2
Compare
ShacharKagan
approved these changes
Jul 23, 2026
Member
|
Please add description of what is the problem that you are fixing into the commit message. Thanks |
set_bind_wr() assigns the incremented rkey to the bind WR but leaves MW.rkey unchanged. After the bind succeeds, applications that publish MW.rkey to the peer send the old rkey, while the NIC has already bound the MW with the new rkey. Remote access using the stale rkey consequently fails with a remote access error. Synchronize MW.rkey with the rkey of successfully posted IBV_WR_BIND_MW requests. When posting a WR list partially fails, only Bind WRs before bad_wr are updated, since those are the requests accepted by ibv_post_send(). Signed-off-by: Zhiwei Zhang <zhangzhiwei@bitintelligence.io>
zzwzds
force-pushed
the
pyverbs-update-type2-mw-rkey
branch
from
August 4, 2026 11:22
46186e2 to
35fd17c
Compare
Author
Synchronize MW.rkey with the rkey assigned by a successfully posted The type 2 MW test now verifies the synchronized MW rkey and uses it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synchronize MW.rkey with the rkey assigned by a successfully posted
type 2 bind WR.
The type 2 MW test now verifies the synchronized MW rkey and uses it
for subsequent remote access.